﻿using SqlSugar;

namespace MyModels.Models
{
    /// <summary>
    /// 接口 Api 地址信息表
    /// </summary>
    public class Modules : RootEntityTKey<long>
    {
        /// <summary>
        /// 父节点
        /// </summary>
        public long ParentId { get; set; }

        /// <summary>
        /// 名称
        /// </summary>
        public string? Name { get; set; }

        /// <summary>
        /// 描述
        /// </summary>
        public string? Description { get; set; }

        /// <summary>
        /// 菜单连接地址
        /// </summary>
        [SugarColumn(Length =100)]
        public string? LinkUrl { get; set; }

        /// <summary>
        /// 区域名称
        /// </summary>
        [SugarColumn(Length =2000)]
        public string? Area { get; set; }

        /// <summary>
        /// 控制器名称
        /// </summary>
        [SugarColumn(Length =2000)]
        public string? Controller { get; set; }

        /// <summary>
        /// Action 名称
        /// </summary>
        [SugarColumn(Length =2000)]
        public string? Action { get; set; }

        /// <summary>
        /// 图标
        /// </summary>
        [SugarColumn(Length =100)]
        public string? Icon { get; set; }

        /// <summary>
        /// 菜单编码
        /// </summary>
        [SugarColumn(Length =10)]
        public string? Code { get; set; }

        /// <summary>
        /// 排序
        /// </summary>
        public int OrderSort { get; set; }

        /// <summary>
        /// 是否是右侧菜单
        /// </summary>
        public bool IsMenu { get; set; }

        /// <summary>
        /// 是否激活
        /// </summary>
        public bool Enabled { get; set; }

    }
}
